package org.spring.boot.sample.profile.dubbo;

import org.spring.boot.sample.dubbo.api.DubboService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;

@RestController
public class Consumer {

	@Reference
	private DubboService DubboService;
	
	@GetMapping("dubbo")
	public String name(){
		return DubboService.returnName();
	}
}
